package com.budgetbears.champagneshaketitle;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ScoreTable extends Activity {
	
	protected static final ScoreDatabase database = ChampagneShakeTitle.database;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	    setContentView(R.layout.scores);
	    
	    ArrayList<String> namesList = new ArrayList<String>();
	    namesList.add("Stim		23440");
	    namesList.add("Bob		21030");
	    namesList.add("Todd		20312");
	    namesList.add("Jeff		14056");
	    namesList.add("Mark		11748");
	    namesList.add("Frank	88502");
	    
		String[] names = new String[3];
		names[0] = "nigel";
		names[1] = "Richard";
		names[2] = "Garry";
		
		ListView listView = (ListView)findViewById(R.id.scoreview);
		ArrayAdapter<String> arrayAdap = new ArrayAdapter<String>(this, android.R.layout.simple_gallery_item, namesList);
		listView.setAdapter(arrayAdap);
		listView.setClickable(false);
	}
}